var ffmpeg = require('ffmpeg');
var fs = require('fs');
var ffmpeg2 = require('fluent-ffmpeg');
function test1(){
    // try {
	// 	var process = new ffmpeg('./img/0000000_00000020180228132122_0010.MP4');
	// 	process.then(function (video) {
    //         // Video metadata
    //         console.log("video::",video)
	// 		console.log("video.metadata::",video.metadata);
	// 		// FFmpeg configuration
	// 		console.log("video.info_configuration::",video.info_configuration);
	// 	}, function (err) {
	// 		console.log('Error: ' + err);
	// 	});
	// } catch (e) {
	// 	console.log("ss",e.code);
	// 	console.log("e",e.msg);
    // }
    // console.log("dasd")
    ffmpeg2.ffprobe('./img/1.mp4',function(err,metadata){
        console.log("dasd")
        console.log(err)
        console.log(metadata.format.duration)
    })
}

test1()